package com.jx.driving.response;

import com.jx.driving.message.TimeTerminalResponseMessage;
import com.jx.driving.protocol.terminal.annotation.BcdAnnotation;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.StringAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;
import com.jx.driving.protocol.terminal.annotation.WordAnnotation;

/**
 * 查询用户信息响应
 * @author wangzhengtao
 *
 */
@TerminalAnnotation
public class Terminal0x8703Response extends TimeTerminalResponseMessage {
	/**流水号**/
	@WordAnnotation(order = 1)
	private int sequence;

	/**
	 * 结果
	 * 0：成功；1：找不到相关信息
	 */
	@ByteAnnotation(order = 2)
	private int result;
	@StringAnnotation(order = 3)
	private String name;
	@ByteAnnotation(order = 4)
	private int sex;
	@BcdAnnotation(order = 5, value = 8)
	private String phone;
	@StringAnnotation(order = 6)
	private String photoUrl;
	@LimitedStringAnnotation(order = 7, value = 2)
	private String drivingType;

	public int getSequence() {
		return sequence;
	}

	public void setSequence(int sequence) {
		this.sequence = sequence;
	}

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPhotoUrl() {
		return photoUrl;
	}

	public void setPhotoUrl(String photoUrl) {
		this.photoUrl = photoUrl;
	}

	public String getDrivingType() {
		return drivingType;
	}

	public void setDrivingType(String drivingType) {
		this.drivingType = drivingType;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Terminal0x8703Response [sequence=").append(sequence).append(", result=").append(result)
				.append(", name=").append(name).append(", sex=").append(sex).append(", phone=").append(phone)
				.append(", photoUrl=").append(photoUrl).append(", drivingType=").append(drivingType).append("]");
		return builder.toString();
	}

}
